package com.hud.easynavi;

import android.util.SparseArray;

/**
 * Created by Administrator on 2017/3/16.
 */
public class GearLevel {
    /**
     0X0: Between Ranges
     0X1: Park Range
     0X2: Reverse Range
     0X3: Neutral Range
     0X4: Forward Range A
     0X5: Forward Range B
     0X6: Forward Range C
     0X7: Forward Range D
     0X8: Forward Range E
     0X9: Forward Range F
     0XA: Forward Range G
     0XB: Forward Range H
     0XF: Lever Position Unknown
     */
    SparseArray<String> gearLevel = new SparseArray<>();

    public GearLevel()
    {
//        gearLevel.put(0,"b"); // gear_level_b.png对应 资源文件里面不允许用大写字母命名文件!
        gearLevel.put(1,"P");
        gearLevel.put(2,"R");
        gearLevel.put(3,"N");
        gearLevel.put(4,"D");
//        gearLevel.put(5,"b");
//        gearLevel.put(6,"c");
//        gearLevel.put(7,"d");
//        gearLevel.put(8,"e");
//        gearLevel.put(9,"f");
//        gearLevel.put(0xA,"g");
//        gearLevel.put(0xB,"h");
//        gearLevel.put(0xF,"unknown");
    }

    public String getLevelById(int id){
        return gearLevel.get(id);
    }
}
